import React, {Component,PropTypes} from 'react';

import {modal} from '../modal/modal'

let alert=function(props){

    modal({
        children:(<div>
                    <div className="content">
                        {props.msg}
                    </div>
                    <div className="footer">
                        <button className="btn btn-warning" data-close >{props.btnStr||'确定'}</button>
                    </div>
                </div>),
        closeIcon:false,
        closeByBack:false,
        leaveAfter:props.okHidden,
        type:'alert nomal'
    });
}

export default alert;